package com.efast.dmom.aps.bean;

import com.efast.dmom.aps.bean.base.BaseBean;
import com.efast.dmom.aps.entity.RouteArcEntity;
import com.efast.dmom.aps.entity.RouteLineRelEntity;

public class RouteLineRelation extends BaseBean<RouteLineRelEntity> {

	
	private static final long serialVersionUID = 1L;
	
	
	private RouteArcEntity innerData;

	public RouteArcEntity getInnerData() {
		return innerData;
	}

	public void setInnerData(RouteArcEntity innerData) {
		this.innerData = innerData;
	}

	public boolean equals(Object obj) {

		boolean result = false;

		if (obj instanceof Route) {

			if (this.getInnerData().getId() <= 0) {
				result = (this == (RouteLineRelation) obj);
			} else {
				result = (this.getInnerData().getId() == ((RouteLineRelation) obj).getInnerData().getId());
			}
		}
		return result;
	}

}
